//
//  AllWeatherRadial.m
//  Chapt10_CarPartsInit_v10-01
//
//  Created by Ronald Ram on 11/03/2011.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "AllWeatherRadial.h"


@implementation AllWeatherRadial

//Override the Designated Initializer method of SUPER!!!
- (id)initWithPressure:(float)pressure threadDepth:(float)threadDepth
{
    self = [super initWithPressure:pressure threadDepth:threadDepth];
    
    if ( self ) 
    {
        rainHandling = 23.7;
        snowHandling = 42.5;
    }
    
    return (self);
}


//M001: set RainHandling
-(void) setRainHandling:(float) rh
{
    rainHandling = rh;
}

//M002: get RainHandling
-(float) rainHandling
{
    return (rainHandling);
}


//M003: set SnowHandling
-(void) setSnowHandling:(float)sh
{
    snowHandling = sh;
}

//M003: get SnowHandling
-(float) snowHandling
{
    return (snowHandling);
}


-(NSString *) description
{
    NSString * desc;
    desc = [ [NSString alloc] initWithFormat: 
            @"AllWeatherRadial: %.1f / %.1f / %.1f / %.1f", 
            [self pressure], [self threadDepth], 
            [self rainHandling], [self snowHandling] ];
    
    return (desc);
}

@end
